package main

import "fmt"

var strss= []string{
	"qwr",
	"234",
	"yui",
	"cvbc",
}

func main()  {
	test("aaa","bbb","ccc","ddd")
	test(strss...) //切片被打散传入
}


func test(args ...string) { //可以接受任意个string参数
	for _, v:= range args{
		fmt.Println(v)
	}
}

